# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-games
pkgver=3.36.1
pkgrel=0
pkgdesc="Browse and play your games"
url="https://wiki.gnome.org/Apps/Games"
arch="all !s390x !mips !mips64" # needs librsvg
license="GPL-3.0-or-later"
makedepends="meson gtk+3.0-dev vala grilo-dev libhandy-dev librsvg-dev libmanette-dev
	libsoup-dev tracker-dev sqlite-dev libxml2-dev libarchive-dev retro-gtk-dev"
checkdepends="desktop-file-utils appstream-glib"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-games/${pkgver%.*}/gnome-games-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="27404bf2d9fc3dd1a0e9d6dc194b62ad3110c0237fd42e2ef05fc1fe3d53087b9265a984cb450009fc2f8e2660840c832d708a26ce5f06074f84e2d5e61382a1  gnome-games-3.36.1.tar.xz"
